package com.le.tester.dao;

import com.le.tester.dto.EmployeeDto;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Options;
import org.springframework.beans.factory.annotation.Qualifier;

/**
 * createTime：2024-11-28 15:37
 * description：员工dao
 */
@Mapper
public interface EmployeeDao {


    @Insert("insert into employee_info (emp_name,sex,level) values (#{name},#{sex},#{level})")
    @Options(useGeneratedKeys = true, keyProperty = "id", keyColumn = "id")
    @Qualifier("sqlSessionFactoryEmployee")
    void addEmployee(EmployeeDto empInfo);


}
